import http from "@/api";
import { Login } from '../interface'


// 登录
export const loginApi = (params: Login.ReqLoginForm) => http.post<Login.ResLogin>("/api/login", params);

// 退出登录
export const logoutApi = () => http.post("/api/logout");

// 获取菜单列表
export const getAuthMenuListApi = () => http.get<Menu.MenuOptions[]>("/api/menu/list");

// 获取权限按钮
export const getAuthButtonListApi = () => http.get<Login.ResAuthButtons>("/api/button/list");

// 用户退出登录